package leetcode;

import java.util.Arrays;
import java.util.Scanner;
class A {
    public A(String he) {
    }
}

public class LeetCodeMain66 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        while (in.hasNext()){
            String str1=in.next();
            String str2=in.next();
            String str3=in.next();
            StringBuffer min1=new StringBuffer();
            StringBuffer max=new StringBuffer();
            StringBuffer min2=new StringBuffer();
            if (str1.compareTo(str2)>0){
                if (str1.compareTo(str3)>=0){
                    max.append(str1);
                    min2.append(str3);
                    min1.append(str2);
                }else {
                    max.append(str3);
                    min2.append(str1);
                    min1.append(str2);
                }
            }
        }
    }
    public static void main3(String[] args) {
        A classa=new  A("he");
        A b=new A("he");
        System.out.println(classa==b);
    }
    public static void main2(String[] args) {
        Scanner in=new Scanner(System.in);
        while (in.hasNext()){
            String n=in.next();
            String r=in.next();
            StringBuffer buffer=new StringBuffer();
            int ans=0;
            for (int i = r.length()-1; i >=0 ; i--) {
                char ch=r.charAt(i);
                int sum=(ch-'0')*628+ans;
                if (sum!=0){
                    buffer.append(sum%10);
                }

                ans=sum/10;
            }
            if (ans!=0){
                while (ans!=0){
                    buffer.append(ans%10);
                    ans=ans/10;
                }

            }
            buffer.reverse();
            StringBuffer buffer1=new StringBuffer();
            buffer1.append(n);
            buffer1.append(0);
            buffer1.append(0);
//            System.out.println(buffer.toString());
//            System.out.println(buffer1.toString());

            if (buffer.toString().compareTo(buffer1.toString())>=0){
                System.out.println("Yes");
            }else {
                System.out.println("No");
            }
        }
    }
    public int jumpFloorII(int target) {
        int[] dp=new int[target+1];
        dp[1]=1;
        dp[0]=1;
        for (int i = 2; i <= target; i++) {
            for (int j = i; j > 0; j--) {
                dp[i]+=dp[i-j];
            }
        }
        return dp[target];
    }
    public static void main1(String[] args) {
//        System.out.println(1+"10"+3+"2");
//        Arrays.asList()
    }
}
